<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title> 2-4 多样化的我(变量赋值）</title>
    <link rel="stylesheet" type="text/css" href="../../../css/style.css"/>
    <style type="text/css">

    </style>

    <script type="text/javascript">
    var num1=10; //声明变量并赋值数值
    var num2="JS"; //声明变量并赋值字符串

    document.write("num1的值是:"+num1+"<br>");
    document.write("num2的值是:"+num2);
    </script>
</head>

<body>
<div align="center">
    <p><a href="../../index.php#jsjjp" class="fontSize" title="点击进入该目录">目录</a></p>
</div>



<script type="text/javascript">

</script>

</body>
</html>
